home *** CD-ROM | disk | FTP | other *** search
/ IBM InfoROM for OS/2 Beta 1995 January / IBM InfoROM for OS2 Beta 1-1995.ISO / testcert / storage / function / scsi / add / sndiagno.scr < prev    next >
Encoding:
Text File  |  1994-08-13  |  1.8 KB  |  56 lines

  1. * Requests the target to perform diagnostic operations on itself.
  2.  
  3. @THREAD SNDIAGNO.LOG
  4. @NEWALIAS SADD SCSIADD.GRA
  5. @IMPORT SCSICOM.SCR
  6. SADD DD_OPEN
  7.  
  8. * 0=Async mode, 1=Sync mode
  9. SADD SET MODE=1
  10.  
  11. * Command completion timeout (Secs)
  12. * 0=the assigned value is the default set by the driver,
  13. * -1=the assigned value is infinite.
  14. SADD SET TIMEOUT=0 
  15.  
  16.  
  17. *  0 :  prohibits any diagnostic operations that may be
  18. *       detected by subsequent I/O processes.
  19. *  1 :  grants permission to the target to perform diagnostic
  20. *       operations that may affect the user accessible medium on 
  21. *       the logical unit, e.g. write operations to the user accessible
  22. *       medium, or repositioning of the medium on sequential access devices.
  23. SADD SET UNIT_OFF_LINE = 0
  24.  
  25. *  0 :  prohibits diagnostic operations that may be detected by 
  26. *       subsequent I/O processes.
  27. *  1 :  grants permission to the target to perform diagnostic
  28. *       operations that may affect all the logical units on a target, 
  29. *       e.g. alteration of reservations, log parameters, or sense data.
  30. SADD SET DEVICE_OFF_LINE = 0
  31.  
  32. *  0 :  requests that the target perform the diagnostic
  33. *       operation specified in the parameter list.
  34. *  1 :  directs the target to complete its default self-test.  
  35. SADD SET SELF_TEST = 1
  36.  
  37. *  0 :  parameters are as specified in SCSI-1
  38. *       (i.e. all parameters are vendor-specific).
  39. *  1 :  parameters conform to the page structure as specified in the
  40. *       International Standard.
  41. SADD SET PAGE_FORMAT = 0
  42.  
  43. * length in bytes of the Parameter list that shall be transferred
  44. * from the initiator to the target.
  45. SADD SET NUM_BYTES = 0
  46.  
  47. * Name for paramblock
  48. SADD SET LABEL = "SEND DIAGNOSTIC"
  49.  
  50. *SADD SET CONTROL_LINK = 1
  51.  
  52. SADD SEND_DIAGNOSTIC
  53.  
  54. SADD DD_CLOSE
  55.  
  56.